Added KaggleERN dataset#738
Open
WubbzyFromWuzzleburg wants to merge 1 commit intosunlabuiuc:masterfrom
Open
Conversation
Collaborator
|
LGTM, but probably need to update the code to support the newest changes. |
Collaborator
|
The test failed with error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contributor: Elliott Huang (elliott500800@gmail.com)
Contribution Type: New Dataset + Documentation + Example Script
Description:
This PR adds support for the KaggleERN (INRIA BCI Challenge) EEG dataset in PyHealth. It introduces a
KaggleERNDatasetclass that validates the expected raw folder structure and provides an offline preprocessing utility to convert raw EEG CSV files into fixed-length epoch/window pickle files for downstream training (keeping the pickle schema compatible with the provided fine-tuning workflow). This PR also updates the API documentation to include the new dataset and adds an end-to-end fine-tuning example for EEGPT on KaggleERN, including instructions for downloading and placing the pretrained EEGPT checkpoint.Files to Review:
pyhealth/datasets/kaggleern.py— KaggleERN dataset class + offline preprocessing to window pickle formatpyhealth/datasets/configs/kaggleern.yaml— Dataset config entry (tables/attributes schema)pyhealth/datasets/__init__.py— ExposeKaggleERNDatasetin the datasets namespaceexamples/kaggleern_finetune_EEGPT.py— Fine-tuning example script (paths are placeholders; includes pretrained checkpoint notes)docs/api/datasets.rst— Register KaggleERN in dataset API docs indexdocs/api/datasets/pyhealth.datasets.KaggleERNDataset.rst— New API doc page forpyhealth.datasets.KaggleERNDatasettests/core/test_kaggleern.py— Unit tests for dataset verification and optional preprocessing integration